<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        <h3 v-if="flag">星期一</h3>
        <h3 v-if="!flag">星期二</h3>
        <h3>成绩等级
            <span v-if="mark>90">优秀</span>
            <span v-else-if="mark>60">合格</span>
            <span v-else>不合格</span>
        </h3>

        <template v-if="flag">
            <div>星期一</div>
            <div>星期二</div>
        </template>       
         <template v-if="!flag">
            <div>星期三</div>
            <div>星期四</div>
        </template>


    </div>
</body>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            flag: true,
            mark: 88
        }
    })
</script>

</html>